# 目标：
# 增加用户输入
# 输入指定时间格式
# 输出对应的课程表
# （非会员每天可以使用5次，会员可以使用10次，登录时判断）
vip_data = ("pina")
vippassword_data = ("654321")
user_data = ("zhichao")
password_data =("123456")


count = 10
while True :
    count -= 1
    username = input("请输入用户名称：")
    password = input("请输入用户密码：")
    if username == vip_data:
        if password == vippassword_data:
            print ("登录成功，欢迎会员",vip_data,"使用！")

            print("课程表")
            import datetime
            time = datetime.datetime.today().weekday()
            week_time = int(time)
            print("今天周",week_time + 1)
            if week_time == 0:
                print("周一有一节课");
                print("8-10Python语言")
            elif week_time == 1:
                print("周二有两节课");
                print("8-10网站运营与管理");
                print("12-13毛概实践")
            elif week_time == 2:
                print("周三有两节课");
                print("1-2大英");
                print("12-13创业实践")
            elif week_time == 3:
                print("周四有两节课");
                print("3-5毛概");
                print("8-9网球")
            elif week_time == 4:
                print("周五有两节课");
                print("1-2AI");
                print("4-5大英")
            else:
                print("周六、周日");
                print("周末")
            break
    else :
            print ("账号或密码输入错误！请重新输入，您还有",count,"次登录的机会")

    if count == -1 :
         print("尝试次数过多，请10分钟以后在尝试")
         break
    elif username == user_data:
        if password == password_data:
             print("登录成功，欢迎", user_data, "使用！")
        else:
            print("账号或密码输入错误！请重新输入，您还有", count, "次登录的机会")



